<?php 
	$this->widget('ext.editor.ueditor.ueditorWidget',array(
			'id'=>'myEditor',
			'initialContent' => '<span style="color:#ccc">欢迎使用ueditor</span>',
			'initialStyle' => 'body{margin:8px;font-family:"宋体";font-size:16px;}',
			'elementPathEnabled' => true,
			'minFrameHeight' => 150,
//			'autoClearinitialContent' => true,
			'imagePath' => '/',
			'textarea' => 'content',

			'autoHeightEnabled' => true,
//			'toolbars'=>array(array('Undo','Redo','|','ForeColor','BackColor', 'Bold','Italic','Underline','JustifyLeft','JustifyCenter','JustifyRight','InsertImage','ImageNone','ImageLeft','ImageRight','ImageCenter' )),
	));
?>

<div class="form">    
   <div class="row">
    	<?php echo $form->textField($model,'arc_title',array('size'=>60,'maxlength'=>200)); ?>
    	<?php echo $form->error($model,'arc_title'); ?>
    </div>
</div>

<div style="-moz-border-radius: 2px\9;">
    <div class="form">
	    <div class="row">
			<!--style给定宽度可以影响编辑器的最终宽度-->
			<script type="text/plain" id="myEditor" style="width:100%" name="Article[arc_content]">
				<?php echo $model->arc_content; ?>
			</script>
			<?php //echo $form->error($model,'content'); ?>
    		<?php echo $form->error($model,'arc_content'); ?>
    	</div>
    </div><!-- form -->
</div>

